<html>

<head>
    <style type="text/css">
        table.gradienttable {
            font-family: verdana, arial, sans-serif;
            border-width: 3px;
            border-collapse: collapse;
            width: 100%;
        }
        
        table.gradienttable th {
            padding: 3px;
            color: #FFFFFF;
            background: #000066;
            font-size: 12px;
        }
        
        table.gradienttable td {
            padding: 3px;
            color: #000000;
            font-size: 11px;
            background: #ebecda;
            text-align: center;
        }
        
        table.gradienttable th p {
            margin: 3px;
            padding: 9px;
        }
        
        table.gradienttable td p {
            padding: 9px;
        }
    </style>
    <style>

    </style>

    <script>
        function openWeekSummary() {
            // 获取日期选择控件的值
            var date = document.getElementById('mydate').value;

            // 构建目标URL
            var url = '/task/weeksummary?date=' + encodeURIComponent(date);

            // 打开新窗口
            window.open(url, '_blank');
        }

        function refreshFeishu() {
            var selectedMan = document.querySelector('input[name="man"]:checked').value;
            var url = '/task/feishu?man=' + encodeURIComponent(selectedMan);
            window.location.href = url;
        }

        function refreshTapd() {
            var selectedMan = document.querySelector('input[name="man"]:checked').value;
            var url = '/task/tapdtask?man=' + encodeURIComponent(selectedMan);
            window.location.href = url;
        }


        
        function check() {
            // 获取日期选择控件的值
            var date = document.getElementById('mydate').value;

            // 构建目标URL
            var url = '/task/check?date=' + encodeURIComponent(date) + '&force=true';
            window.location.href = url;
        }
    </script>
</head>

<body>
    <div style="width:1366px;margin-left:auto;margin-right:auto;">
        <table class="gradienttable" border="1" style="width:100%;line-height:2em;">
            <tr>
                <th style="width:3em;">ID</th>
                <th style="width:10em;">飞书OPENID</th>
                <th style="width:6em;">姓名</th>
                <th style="width:5em;">[飞书]算效率</th>
                <th style="width:8em;">[TAPD]算效率</th>
                <th style="width:6em;">应产出工时倍率</th>
                <th style="width:5em;">组别</th>
                <th style="width:4em;">组别序号</th>
                <th style="width:8em;">[飞书]超时未填报工时提醒</th>
            </tr>
            #for(e:empls)
                <tr>
                    <td>#(e.sID)</td>
                    <td>#(e.xCode)</td>
                    <td><a href="" onclick="window.open('/empl/show?sID=#(e.sID)', '_blank')">#(e.xName)</a></td>
                    <td>#if(e.xIsCount) √ #else &nbsp; #end</td>
                    <td>#if(e.xIsCountTapd) √ #else &nbsp; #end</td>
                    <td>#(e.xCountRate)</td>
                    <td>#(e.xGroup)</td>
                    <td>#(e.xGroupIndex)</td>
                    <td>#if(e.xIsNotice) √ #else &nbsp; #end</td>
            </tr>
            #end
        </table>
</div>
</body>
</html>